include_directories(
        ${PROJECT_BINARY_DIR}/util
        ${PROJECT_BINARY_DIR}/core
)

link_directories(
        ${PROJECT_BINARY_DIR}/util
        ${PROJECT_BINARY_DIR}/core
)

if(double_precision)
        set_source_files_properties(test_pu.f90 test_data_fit.f90
                PROPERTIES
                COMPILE_FLAGS -r8
        )
endif(double_precision)

add_executable(test_pu test_pu.f90)

target_link_libraries(test_pu util fpcore)

add_executable(test_data_fit test_data_fit.f90)

target_link_libraries(test_data_fit util)

install(TARGETS test_pu test_data_fit RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
